﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace NextCMS.Models
{
    /// <summary>
    /// Summary description for PageContentModel
    /// </summary>
    public class PageContentModel
    {
        public int Id { get; set; }
        public int LanguageId { get; set; }
        public string Name { get; set; }
        public string Content { get; set; }
        public bool IsGeneral { get; set; }
    }
    public interface IPageContent : IDisposable
    {
        PageContentModel GetById(int id, int LanguageId);
        IEnumerable<PageContentModel> GetAll(int LanguageId);
        IEnumerable<PageContentModel> GetGeneralContents(int LanguageId);
        int Save(PageContentModel page);
        void Delete(int id);
        void Edit(PageContentModel page);
    }
}